<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
        <title>Vue-WMTS</title>
        <script include="vue" exclude="plugin,cesium" src="./static/libs/include-cesium-local.js"></script>
        <style type="text/css">
            #app {
                height: 100vh;
                width: 100vw;
            }
        </style>
    </head>

    <body>
        <div id="app">
            <mapgis-web-scene
                :animation="false"
                :timeline="false"
                v-on:load="handleLoad"
                lib-path="./static/libs/cdn/cesium/Cesium.js"
                plugin-path="./static/libs/cdn/zondyclient/webclient-cesium-plugin.min.js"
            >
                <mapgis-3d-ogc-wmts-layer
                    :base-url="baseUrl"
                    :wmts-layer="wmtsLayer"
                    :tiling-scheme="tilingScheme"
                    :tile-matrix-set="tileMatrixSet"
                    :format="format"
                    :layer-style="layerStyle"
                >
                </mapgis-3d-ogc-wmts-layer>
            </mapgis-web-scene>
        </div>
        <script>
            new Vue({
                el: '#app',
                data() {
                    return {
                        baseUrl: 'http://t6.tianditu.gov.cn/vec_c/wmts?tk=9c157e9585486c02edf817d2ecbc7752',
                        wmtsLayer: 'vec',
                        tileMatrixSet: 'c',
                        tilingScheme: 'EPSG:4326',
                        format: 'tiles',
                        layerStyle: {
                            zIndex: 1
                        }
                    };
                },
                methods: {
                    handleLoad(e) {
                        console.log('地图加初始化完毕！', e);
                    }
                }
            });
        </script>
    </body>
</html>
